#include <stdio.h>

int main()
{
	int a = 10;
	int b = 20;
    int c;
    int d;
	
    asm("movl %3, %%eax \n"
        "movl %%eax, %1 \n"
		:"=b"(c),"=c"(d)
        :"d"(a),"S"(b)
		:"%eax"
        );
    
    printf("d = %d\n", d);
}

